#地区编码
import random

class Areas:

    areaCodeList = [
    ("010","北京"), ("021","上海"), ("022","天津"), ("023","重庆"), ("0311","河北省 石家庄"), ("0312","河北省 保定"), ("0313","河北省 张家口"), ("0314","河北省 承德"),
    ("0315","河北省 唐山"), ("0316","河北省 廊坊"), ("0317","河北省 沧州"), ("0318","河北省 衡水"), ("0319","河北省 邢台"), ("0310","河北省 邯郸"), ("0335","河北省 秦皇岛"),
    ("0351","山西省 太原"), ("0352","山西省 大同"), ("0353","山西省 阳泉"), ("0354","山西省 榆次"), ("0355","山西省 长治"), ("0356","山西省 晋城"), ("0357","山西省 临汾"),
    ("0358","山西省 离石"), ("0359","山西省 运城"), ("0350","山西省 忻州"), ("0471","内蒙古 呼和浩特"), ("0472","内蒙古 包头"), ("0473","内蒙古 乌海"), ("0474","内蒙古 集宁"),
    ("0475","内蒙古 通辽"), ("0476","内蒙古 赤峰"), ("0477","内蒙古 东胜"), ("0478","内蒙古 临河"), ("0479","内蒙古 锡林浩特"), ("0470","内蒙古 海拉尔"), ("024","辽宁省 沈阳"),
    ("0411","辽宁省 大连"), ("0411","辽宁省 瓦房店"), ("0412","辽宁省 鞍山"), ("0413","辽宁省 抚顺"), ("0414","辽宁省 本溪"), ("0415","辽宁省 丹东"), ("0416","辽宁省 锦州"),
    ("0417","辽宁省 营口"), ("0418","辽宁省 阜新"), ("0419","辽宁省 辽阳"), ("0410","辽宁省 铁岭"), ("0376","辽宁省 信阳"), ("0377","辽宁省 南阳"), ("0378","辽宁省 开封"),
    ("0379","辽宁省 洛阳"), ("0370","辽宁省 商丘"), ("0391","辽宁省 焦作"), ("0392","辽宁省 鹤壁"), ("0393","辽宁省 濮阳"), ("0394","辽宁省 周口"), ("0395","辽宁省 漯河"),
    ("0396","辽宁省 驻马店"), ("0398","辽宁省 三门峡"), ("027","湖北省 武汉"), ("0711","湖北省 鄂州"), ("0712","湖北省 孝感"), ("0713","湖北省 黄冈"), ("0714","湖北省 黄石"),
    ("0715","湖北省 咸宁"), ("0716","湖北省 沙市"), ("0717","湖北省 宜昌"), ("0718","湖北省 恩施"), ("0719","湖北省 十堰"), ("0710","湖北省 襄樊"), ("0724","湖北省 荆门"),
    ("0731","湖南省 长沙"), ("0732","湖南省 湘潭"), ("0733","湖南省 株洲"), ("0734","湖南省 衡阳"), ("0735","湖南省 郴州"), ("0736","湖南省 常德"), ("0737","湖南省 益阳"),
    ("0738","湖南省 娄底"), ("0739","湖南省 邵阳"), ("0730","湖南省 岳阳"), ("0745","湖南省 怀化"), ("020","广东省 广州"), ("0751","广东省 韶关"), ("0752","广东省 惠州"),
    ("0753","广东省 梅州"), ("0754","广东省 汕头"), ("0755","广东省 深圳"), ("0756","广东省 珠海"), ("0757","广东省 佛山"), ("0758","广东省 肇庆"), ("0759","广东省 湛江"),
    ("0750","广东省 江门"), ("0769","广东省 东莞"), ("0765","广东省 顺德"), ("0760","广东省 中山"), ("0762","广东省 河源"), ("0763","广东省 英德"), ("0431","吉林省 长春"),
    ("0432","吉林省 吉林"), ("0433","吉林省 延吉"), ("0434","吉林省 四平"), ("0435","吉林省 通化"), ("0436","吉林省 白城"), ("0437","吉林省 辽源"), ("0438","吉林省 前敦"),
    ("0439","吉林省 浑江"), ("0448","吉林省 梅河口"), ("0451","黑龙江省 哈尔滨"), ("0452","黑龙江省 齐齐哈尔"), ("0453","黑龙江省 牡丹江"), ("0454","黑龙江省 佳木斯"),
    ("0455","黑龙江省 绥化"), ("0456","黑龙江省 黑河"), ("0457","黑龙江省 加格达其"), ("0458","黑龙江省 伊春"), ("0459","黑龙江省 大庆"), ("0450","黑龙江省 阿城"), ("025","江苏省 南京"),
    ("0511","江苏省 镇江"), ("0512","江苏省 苏州"), ("0513","江苏省 南通"), ("0514","江苏省 扬州"), ("0515","江苏省 盐城"), ("0516","江苏省 徐州"), ("0517","江苏省 淮阴"),
    ("0518","江苏省 连云港"), ("0519","江苏省 常州"), ("0510","江苏省 无锡"), ("0520","江苏省 常熟"), ("0520","江苏省 张家港"), ("0571","浙江省 杭州"), ("0572","浙江省 湖州"),
    ("0573","浙江省 嘉兴"), ("0574","浙江省 宁波"), ("0575","浙江省 绍兴"), ("0576","浙江省 临海"), ("0577","浙江省 温州"), ("0578","浙江省 丽水"), ("0579","浙江省 金华"),
    ("0570","浙江省 衢州"), ("0551","安徽省 合肥"), ("0552","安徽省 蚌埠"), ("0553","安徽省 芜湖"), ("0768","安徽省 潮州"), ("0663","安徽省 惠来"), ("0668","安徽省 茂名"),
    ("0771","广西区 南宁"), ("0772","广西区 柳州"), ("0773","广西区 桂林"), ("0774","广西区 梧州"), ("0775","广西区 玉林"), ("0777","广西区 钦州"), ("0778","广西区 河池"),
    ("0779","广西区 北海"), ("0770","广西区 防城"), ("0898","海南省 海口"), ("0899","海南省 三亚"), ("0890","海南省 儋县"), ("028","四川省 成都"), ("0812","四川省 攀枝花"),
    ("0813","四川省 自贡"), ("0814","四川省 永川"), ("0815","四川省 温江"), ("0816","四川省 绵阳"), ("0817","四川省 南充"), ("0818","四川省 达县"), ("0819","四川省 万县市"),
    ("0810","四川省 涪陵"), ("0830","四川省 泸州"), ("0831","四川省 宜宾"), ("0832","四川省 内江"), ("0833","四川省 乐山"), ("0834","四川省 西昌"), ("0835","四川省 雅安"),
    ("0837","四川省 马尔康"), ("0838","四川省 德阳"), ("0839","四川省 广元"), ("0851","贵州省 贵阳"), ("0852","贵州省 遵义"), ("0853","贵州省 安顺"), ("0854","贵州省 都匀"),
    ("0855","贵州省 凯里"), ("0856","贵州省 铜仁"), ("0857","贵州省 毕节"), ("0858","贵州省 六盘水"), ("0859","贵州省 兴义"), ("0871","云南省 昆明"), ("0872","云南省 大理"),
    ("0873","云南省 个旧"), ("0874","云南省 曲靖"), ("0875","云南省 保山"), ("0876","云南省 文山"), ("0555","云南省 马鞍山"), ("0556","云南省 安庆"), ("0557","云南省 宿县"),
    ("0558","云南省 阜阳"), ("0559","云南省 黄山"), ("0550","云南省 滁州"), ("0561","云南省 淮北"), ("0562","云南省 铜陵"), ("0563","云南省 宣城"), ("0564","云南省 六安"),
    ("0565","云南省 巢湖"), ("0591","福建省 福州"), ("0592","福建省 厦门"), ("0593","福建省 宁德"), ("0594","福建省 莆田"), ("0595","福建省 泉州"), ("0596","福建省 漳州"),
    ("0597","福建省 龙岩"), ("0598","福建省 三明"), ("0599","福建省 南平"), ("0791","江西省 南昌"), ("0792","江西省 九江"), ("0793","江西省 上饶"), ("0794","江西省 陵川"),
    ("0795","江西省 宜春"), ("0796","江西省 吉安"), ("0797","江西省 赣州"), ("0798","江西省 景德镇"), ("0799","江西省 萍乡"), ("0790","江西省 分宜"), ("0531","山东省 济南"),
    ("0532","山东省 青岛"), ("0533","山东省 淄博"), ("0534","山东省 德州"), ("0535","山东省 烟台"), ("0536","山东省 潍坊"), ("0537","山东省 济宁"), ("0538","山东省 泰安"),
    ("0539","山东省 临沂"), ("0530","山东省 荷泽"), ("0896","山东省 威海"), ("0633","山东省 日照"), ("0371","河南省 郑州"), ("0372","河南省 安阳"), ("0373","河南省 新乡"),
    ("0374","河南省 许昌"), ("0375","河南省 平顶山"), ("0877","河南省 玉溪"), ("0878","河南省 楚雄"), ("0879","河南省 思茅"), ("0870","河南省 昭通"), ("0891","西藏 拉萨"),
    ("029","陕西省 西安"), ("0911","陕西省 延安"), ("0912","陕西省 榆林"), ("0913","陕西省 渭南"), ("0914","陕西省 商州"), ("0915","陕西省 安康"), ("0916","陕西省 汉中"),
    ("0917","陕西省 宝鸡"), ("0919","陕西省 铜川"), ("0910","陕西省 咸阳"), ("0931","甘肃省 兰州"), ("0932","甘肃省 定西"), ("0933","甘肃省 平凉"), ("0934","甘肃省 西峰"),
    ("0935","甘肃省 武威"), ("0936","甘肃省 张掖"), ("0937","甘肃省 酒泉"), ("0938","甘肃省 天水"), ("0939","甘肃省 成都"), ("0930","甘肃省 临夏"), ("0951","宁夏区 银川"),
    ("0952","宁夏区 石嘴山"), ("0953","宁夏区 吴忠"), ("0954","宁夏区 固原"), ("0971","青海省 西宁"), ("0972","青海省 平安"), ("0973","青海省 同仁"), ("0974","青海省 共和"),
    ("0977","青海省 德令哈"), ("0978","青海省 门源"), ("0979","青海省 格尔木"), ("0991","新疆 乌鲁木齐"), ("0992","新疆 奎屯"), ("0993","新疆 石河子"), ("0994","新疆 昌吉"),
    ("0995","新疆 吐鲁番"), ("0996","新疆 库尔勒"), ("0997","新疆 阿克苏"), ("0998","新疆 喀什"), ("0999","新疆 伊犁"), ("0990",'新疆 克拉玛依')]

    @classmethod
    def get_random_area_code(cls):
        v = random.choice(cls.areaCodeList)
        return v[0]
